<div class="footer">
    <div class="footer_text">
        <h2>
            <volist name="site_nav['footer']" id='vo'>
                <php> if($vo['status']){ </php>
                <a target="{$vo.open_type}" href="{$vo.url}">{$vo.name}</a>
                <php>}</php>
            </volist>
            服务热线：{$contact.phone}
        </h2>
    </div>
    <div class="footer_01">Copyright © 2016 {$siteName}, All Rights Reserved</div>
    <div class="footer_01">{$siteName} 版权所有</div>
</div>
<script type="text/javascript">
    var action = true;
   $(function(){
        $("li dl").hide();
        var c = $.cookie('left'); // 读取 cookie
       if(c){
           var id = parseInt(c);
           $("#dl-"+id).show();
       }
        $(".left01 li >a").click(function(){
           var v = $(this).attr('data-bid');
            $.cookie('left', v); // 存储 cookie
           $(this).nextAll("dl").toggle();
        });

       setInterval('logout()', 300000);

   });
    $('body').mousedown(function (){
        console.log ('点击');
        action = false;
    });
    $('body').keydown(function (){
        console.log ('键盘');
        action = false;
    });
    function logout () {
        console.log (action);
        if (action){
            var url = "{:U('ajax/logout')}";
            $.post (url, {},function (res){
                if (res.state == 'ok'){
                    location.reload(1);
                }
            },'json');
        }else{
            action = true;
        }
    }

</script>
</body>
</html>